<?php
/**
 * Created by PhpStorm.
 * User: QM
 * Date: 2018/3/21
 * Time: 10:24
 */
namespace App\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Debug\Exception\FlattenException;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Log\DebugLoggerInterface;
use Symfony\Component\Routing\Annotation\Route;

class ErrorController extends Controller
{
    public function Access(FlattenException $exception, DebugLoggerInterface $logger)
    {
        return new Response('<html><body>Access Denied</body></html>');
    }
}